<div class="modal-content">
    <div class="modal-header">
        <h4 class="modal-title">学生<span ng-if="form.type == '1'">转入</span><span ng-if="form.type == '2'">转出</span><span ng-if="form.type == '4'">复学</span></h4>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">×</span>
        </button>
    </div>
    <div class="modal-body" style="margin-left:3rem;">
		<div class="form-group row">
			<div class="col-sm-2" style="display: flex; align-items: center;">姓名</div>
			<div class="col-sm-4">
				<input id="userName" type="text" ng-model="form.name" class="form-control" form-check="must" form-check-alert="姓名不能为空">
			</div>
		</div>
		<div class="form-group row">
			<div class="col-sm-2" style="display: flex; align-items: center;">身份证件号</div>
			<div class="col-sm-4">
				<input id="idCard" type="text" ng-model="form.sfzjh" class="form-control" form-check="must" form-check-alert="身份证件号不能为空">
			</div>
		</div>
		<div class="form-group row" ng-if="form.type == '1'">
			<div class="col-sm-2" style="display: flex; align-items: center;">转入年级</div>
			<div class="col-sm-4">
				<select class="form-control" ng-options="grade.id as grade.name for grade in gradeList" ng-model="form.fk_grade" ng-change="findClass()" form-check="must" form-check-alert="转入年级不能为空">
					<option value="">==请选择==</option>
				</select>
			</div>
		</div>
		<div class="form-group row" ng-if="form.type == '1'">
			<div class="col-sm-2" style="display: flex; align-items: center;">转入班级</div>
			<div class="col-sm-4">
				<select class="form-control" ng-options="class.id as class.name for class in classList" ng-model="form.fk_class" form-check="must" form-check-alert="转入班级不能为空">
					<option value="">==请选择==</option>
				</select>
			</div>
		</div>
		<div class="form-group row" ng-if="form.type == '1'">
			<div class="col-sm-2" style="display: flex; align-items: center;">转入时间</div>
			<div class="col-sm-4">
				<td><input class="form-control datepicker date-picker" readonly="readonly" 	ng-model="form.transfer_time" type="text" form-check="must" form-check-alert="转入时间不能为空"></td>
			</div>
		</div>
		<div class="form-group row" ng-if="form.type == '2'">
			<div class="col-sm-2" style="display: flex; align-items: center;">转出时间</div>
			<div class="col-sm-4">
				<td><input class="form-control datepicker date-picker" ng-model="form.transfer_time" type="text" form-check="must" form-check-alert="转出时间不能为空"></td>
			</div>
		</div>
		<div class="form-group row" ng-if="form.type == '2'">
			<div class="col-sm-2" style="display: flex; align-items: center;">备注</div>
			<div class="col-sm-4">
				<input type="text" ng-model="form.remark" class="form-control">
			</div>
		</div>
		<div class="form-group row" ng-if="form.type == '4'">
			<div class="col-sm-2" style="display: flex; align-items: center;">分配年级</div>
			<div class="col-sm-4">
				<select class="form-control" ng-options="grade.id as grade.name for grade in gradeList" ng-model="form.fk_grade" ng-change="findClass()" form-check="must" form-check-alert="年级不能为空">
					<option value="">==请选择==</option>
				</select>
			</div>
		</div>
		<div class="form-group row" ng-if="form.type == '4'">
			<div class="col-sm-2" style="display: flex; align-items: center;">分配班级</div>
			<div class="col-sm-4">
				<select class="form-control" ng-options="class.id as class.name for class in classList" ng-model="form.fk_class" form-check="must" form-check-alert="班级不能为空">
					<option value="">==请选择==</option>
				</select>
			</div>
		</div>
    </div>
    <div class="modal-footer">
       <button ng-click="save()" type="button" class="btn btn-success"><i class="iconfont icon-correct"></i>&nbsp;保存</button>
    </div>
</div>